<%@page import="com.wanmait.cookbook.vo.Pager"%>
<%@page import="java.util.List"%>
<%@page import="com.wanmait.cookbook.vo.Cookbook"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%String path=request.getContextPath(); %>
<!DOCTYPE html>
<!-- saved from url=(0045)https://www.douguo.com/u/u10575865864514.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    
    <title>Queen_Chow的所有菜谱视频_豆果美食</title>
    
    <link rel="icon" href="" type="image/x-icon">
    <link rel="stylesheet" href="<%=path %>/static/css/main.css">
            <link rel="stylesheet" href="<%=path %>/static/css/person.css">
        <script src="<%=path %>/static/js/osd.js.下载"></script><script src="./static/f.txt" id="google_shimpl"></script><script src="<%=path %>/static/js/hm.js.下载"></script><script src="<%=path %>/static/js/jquery.js.下载"></script>
    <script data-ad-client="ca-pub-6608973961595981" async="" src="./static/f(1).txt" data-checked-head="true"></script>
    <script>
    
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?f4fa5d56f272ae0a0777feec2184a97f";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
<link rel="preload" href="./static/f(2).txt" as="script"><script type="text/javascript" src="./static/f(2).txt"></script></head>
<body>
<jsp:include page="/inc/head.jsp"></jsp:include>
<ins class="adsbygoogle adsbygoogle-noablate" data-adsbygoogle-status="done" style="display: none !important;"><ins id="aswift_0_expand" style="display:inline-table;border:none;height:0px;margin:0;padding:0;position:relative;visibility:visible;width:0px;background-color:transparent;"><ins id="aswift_0_anchor" style="display:block;border:none;height:0px;margin:0;padding:0;position:relative;visibility:visible;width:0px;background-color:transparent;"><iframe id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;border:0;width:undefinedpx;height:undefinedpx;" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" frameborder="0" src="./static/ads.html" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" data-google-container-id="a!0" data-load-complete="true"></iframe></ins></ins></ins><script>
    //var time=Date.parse(new Date());
    $.ajax({
        url: "/login/user?time="+new Date().getTime(),
        data:"",
        success:function(res) {
            var headhtml="";
            if(res.data.user.user_id){//登录
                var user=res.data.user;
                // 发布弹窗
                headhtml+='<div class="pubt" onmouseover="javascript:$(\'.pubt-box\').show();" onmouseout="javascript:$(\'.pubt-box\').hide();"> <a class="btn-pubt" href="javascript:void(0);">发布</a> <div class="pubt-box br8"> <span class="arwwj"> </span> <a href="/upfood.html">发布菜谱</a> <a href="/caidan/create">创建菜单</a>';
                if(user.is_create_article){
                    headhtml+='<a href="/uparticle.html">发布长笔记</a>';
                }
                if(user.is_create_video){
                    headhtml+='<a href="/video/upvideo">发布视频</a>';
                }
                headhtml+="  </div> </div>";
                //头像
                headhtml+='<div class="myinfo relative" onmouseover="javascript:$(\'.myedit\').show();" onmouseout="javascript:$(\'.myedit\').hide();"> <a class="headicon" href="/u/'+user.username+'.html"> <img class="wb100 br50" src="'+user.headicon+'" alt=""> <span class="msgnum"></span> </a> <div class="myedit br8"> <span class="arwwj"> </span> <a class="relative" href="/message/remind/1" target="_blank">消息提醒 <span class="boll"></span> </a> <a href="/u/'+user.username+'/collect">我的收藏</a> <a href="/draft/recipe">草稿箱</a> <a href="/user/profile" target="_blank">账号设置</a> <a href="/logout?v=1540878216">退出</a> </div> </div>';
            }else{//未登录
                headhtml+='<div class="pubt" onmouseover="javascript:$(\'.pubt-box\').show();" onmouseout="javascript:$(\'.pubt-box\').hide();"> <a class="btn-pubt" href="javascript:void(0);">发布</a> <div class="pubt-box br8"> <span class="arwwj"> </span> <a href="/upfood.html">发布菜谱</a> <a href="/caidan/create">创建菜单</a> </div> </div> <div class="perinfo"> <a class="login" href="/login"> 登录 </a> | <a class="register" href="/signup.html" target="_blank"> 注册 </a></div>';
            }
            $("#header .header").append(headhtml);
        }
    });
</script>
<div id="content" class="clearfix">
   <jsp:include page="/inc/personalHead.jsp"></jsp:include>
<div id="module">
     <!-- 模态框 -->
<div class="smask"></div>
<!-- 登录框 -->
<div id="log-box" class="fancbox br4">
    <img class="logo" src="./static/image/logo2.png" alt="">
    <input type="text" id="mobile" name="mobile" val="" placeholder="请输入手机号" onkeydown="if(event.keyCode ==13){login()}" onblur="checkPhone();">
    <p class="cellerr"></p>
    <input type="password" id="passport" name="passport" val="" placeholder="请输入密码" onkeydown="if(event.keyCode ==13){login()}">
    <p class="pwerr"></p>
    <a class="login-btn br4" href="javascript:void(0);" onclick="login();">登录</a>
    <div class="forget"><a href="">忘记密码 |</a><a href=""> 注册</a></div>
    <div class="log-type">
        <p>使用社交账号登陆豆果美食</p>
        <span class="clearfix">
            <a href="https://passport.douguo.com/oauth?type=tx&amp;ref=https%3A%2F%2Fwww.douguo.com%2Fcookbook%2F1712641.html"><img src="./static/image/log-qq2.png" alt=""></a>
            <a href="https://passport.douguo.com/oauth?type=sina&amp;ref=https%3A%2F%2Fwww.douguo.com%2Fcookbook%2F1712641.html"><img src="./static/image/log-wb2.png" alt=""></a>
        </span>
    </div>
    <img class="close-logbox" onclick="cmask();" src="./static/image/close.png" alt="">
</div>

        
</div>
<script>
    function pointshow(){
        $(".smask").show();
        $("#point-box").show();
    }
</script>    
<div class="type-head clearfix" id="content">
</div> 
        <h3 class="mini-title" style="margin-top:0;">
        <a href="">
     		我的菜谱
        </a>
    </h3>
    <ul class="cook-list clearfix" id="showlist">
    <%
    
    List<Cookbook> cookbooks = (List<Cookbook>)request.getAttribute("cookbooks");
    for(int i=0;i<cookbooks.size();i++) {
    if((i+1)%3!=0){
    %>
        <li class="left ">
             <a class="cook-img relative" href="<%=path %>/CookbookServlet?action=cookbookShow&id=<%=cookbooks.get(i).getId() %>" target="_blank">
               <img src="<%=path %>/static/image/<%=cookbooks.get(i).getPic() %>" alt="<%=cookbooks.get(i).getTitle()%>">
             </a>
             <a class="cookname" href="<%=path %>/CookbookServlet?action=cookbookShow&id=<%=cookbooks.get(i).getId() %>" target="_blank"><%=cookbooks.get(i).getTitle()%></a>
             <p><i class="read"><img height="15" src="<%=path%>/img/yanjing.jpg"></i> <span><%=cookbooks.get(i).getPageviews() %></span><i class="star"></i> <span></span></p>
        </li>
       <%}else{ %>
             <li class="left  three ">
             <a class="cook-img relative" href="<%=path %>/CookbookServlet?action=cookbookShow&id=<%=cookbooks.get(i).getId() %>" target="_blank">
               <img src="<%=path %>/static/image/<%=cookbooks.get(i).getPic() %>" alt="<%=cookbooks.get(i).getTitle()%>">
             </a>
             <a class="cookname" href="<%=path %>/CookbookServlet?action=cookbookShow&id=<%=cookbooks.get(i).getId() %>" target="_blank"><%=cookbooks.get(i).getTitle()%></a>
             <p><i class="read" "><img height="15" src="<%=path%>/img/yanjing.jpg"></i> <span>：<%=cookbooks.get(i).getPageviews() %></span><i class="star"></i> <span></span></p>
        </li>
       
       <%} }%>
         
            </ul>
            
                <li class="item relative" style="margin-right: 0px">
                            <a class="cover" href="" target="_blank" style="background:#f9f9f9 url(https://cp1.douguo.com/upload/note/e/e/f/320_1596008747433.jpg) no-repeat center center;background-size: cover;"></a>
                        <div class="info">
                                    
                                
                                    <span class="not-like" data-like="not-like" onclick=" setLike(&#39;29247965&#39;,this,&#39;XJm8NIr9iQCC6AGzQDtwakqpnbZFS3MUFh73gVXs&#39;) "></span>
                            </div>
        </li>

               <!-- 显示数字开始 -->
      <div id="cookbookPager" class="pages">
        <%
            Pager pager =(Pager)request.getAttribute("pager");
            int start=1;
            int end=pager.getPageCount();
            if(pager.getPageCount()>5){
              start=pager.getPageNo()-2<1?1:pager.getPageNo()-2;
              end=start+4;
              if(end>pager.getPageCount()){
                end=pager.getPageCount();
                start=end-4;
              }
            }
            %>
            <a href="javascript:void(0)" class="prevPager" one-link-mark="yes">上一页</a>
            <%
            for(int i=start;i<=end;i++){
            if(i==pager.getPageNo()){
              %><a href="javascript:void(0)" style="color:red" class="aliaon" one-link-mark="yes"><%=i %></a>
          <%   }else{%>
            <a href="javascript:void(0)" class="aliaon" one-link-mark="yes"><%=i %></a>
            <% }  
            }%>
        <a href="javascript:void(0)" class="nextPager" one-link-mark="yes">下一页</a>
        <a href="javascript:void(0)" class="aliaon" one-link-mark="yes"><%=pager.getPageNo()%>/<%=pager.getPageCount() %></a>
     </div>
<!-- 上下页事件开始 -->
<script type="text/javascript">
$(function(){
  //上一页点击事件
  $(".prevPager").click(function(){
    var n=<%=pager.getPageNo()%>;
    $.ajax({
      url:"<%=path%>/PersonalServlet",
      data:{action:"initAjax",pageNo:n-1},
      success:function(mes){
        $("#content").html(mes);
      }
      
    });
  });
  //下一页点击事件
  $(".nextPager").click(function(){
    var n=<%=pager.getPageNo()%>;
    $.ajax({
      url:"<%=path%>/PersonalServlet",
      data:{action:"initAjax",pageNo:n+1},
      success:function(mes){
        $("#content").html(mes);
      }
      
    });
  });

})
</script>  
<!--上下页事件结束  -->
            <p class="fcc" style="padding-top:60px;">
        你当前的位置：<a href="" target="_blank">吃了吗</a> &gt; 个人中心
    </p>
</div>  
 
<iframe id="google_osd_static_frame_4273759913039" name="google_osd_static_frame" style="display: none; width: 0px; height: 0px;" src="./static/saved_resource.html"></iframe>
<script src="./static/js/tip.js.下载"></script>
<script src="./static/js/search.js.下载"></script>
<script src="./static/js/main.js.下载"></script>
<!-- <script src='https://s13.cnzz.com/c.php?id=30029854' language='JavaScript' charset='gb2312'></script> -->

</body><iframe id="google_esf" name="google_esf" src="./static/zrt_lookup.html" data-ad-client="ca-pub-6608973961595981" style="display: none;"></iframe></html>
<!--给数字添加点击事件  -->
<script type="text/javascript">
$(function(){
  $("#content").on("click",".aliaon",function(){
    $(".aliaon").css("color","black");//所有的数字变成黑色
    $(this).css("color","orange");
    var n=$(this).html();
    $.ajax({
      url:"<%=path%>/PersonalServlet",
      data:{action:"initAjax",pageNo:n},
      success:function(mes){
        $("#content").html(mes);
      }
      
    });
  });
});

</script>